          <!-- START OF MAINCOL -->
          <div class="MainCol AddEbookPage">
          	  <h1>友情链接编辑</h1>
              <span class="NormalFont SmallFont">
                  <?= CHtml::image(Yii::app()->baseUrl.'/images/home_icon.gif', '主页'); ?> > SEO 选项 > 友情链接编辑
               </span><br /><br />
              <div class="Titlebox box"><!-- DON'T DELETE --></div>
              
              <?php if($link->hasErrors()):  echo CHtml::errorSummary($link); elseif(isPost()): ?>
              <div class="SuccessfulBox Smallbox">
                <span class="Successful"> 友情链接信息成功保存。</span>
              </div>
              <?php endif; ?>
              
              <?= CHtml::form($link->isNewRecord ? array('/admin/seo/addlink') : array('admin/seo/editlink/', 'id' => $link->linkId), 'POST'); ?>
              <div class="Smallbox"><label>链接站点名称<span class="Red">*</span></label>
              <?= CHtml::activeTextField($link, 'desName', array('class' => 'TxtInput')); ?>
              </div>

              <div class="Smallbox"><label>链接地址<span class="Red">*</span></label>
              <?= CHtml::activeTextField($link, 'linkTo', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox"><label>图片标识地址</label>
              <?= CHtml::activeTextField($link, 'imageUrl', array('class' => 'TxtInput')); ?>
              </div>
              
              <?php if($link->imageUrl != '') : ?>
              <div class="Smallbox"><label>&nbsp;</label>
              <?= CHtml::image($link->imageUrl); ?>
              </div>
              <?php endif ?>
              
              <div class="Smallbox"><label>排序</label>
              <?= CHtml::activeTextField($link, 'sortOrder', array('class' => 'TxtInput')); ?>
              </div>
              
              <div class="Smallbox btnBox"><label>&nbsp;</label>
              	  <?= CHtml::submitButton('保存', array('title' => '保存', 'name' => 'submitPost')); ?>
                  <br class="clear" />
              </div>
              <?= CHtml::endForm(); ?>
              <div class="Midbox Red SmallFont">带 * 为必填项</div>
              
          </div>
          <!-- END OF MAINCOL -->
